package br.com.SRP.Modelo;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the fat06ServicoExecutado database table.
 * 
 */
@Entity
@Table(name="fat06ServicoExecutado")
public class Fat06ServicoExecutado implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="codigo")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int codigo;

	@Temporal(TemporalType.TIMESTAMP)
	private java.util.Calendar data;

	@Temporal(TemporalType.TIMESTAMP)
	private java.util.Calendar horaFim;

	@Temporal(TemporalType.TIMESTAMP)
	private java.util.Calendar horaInicio;

	//bi-directional many-to-one association to Eqp01Equipamento
	@ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "equipamento", referencedColumnName = "codigo")
	private Eqp01Equipamento eqp01equipamento;

	//bi-directional many-to-one association to Fat02Servico
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "servico", referencedColumnName = "codigo")
	private Fat02Servico fat02servico;

  //bi-directional many-to-one association to Eqp02Tipo
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "usuario", referencedColumnName = "codigo")
	private Sis01Usuario sis01Usuario;

    public Fat06ServicoExecutado() {
    }

	public int getCodigo() {
		return this.codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public java.util.Calendar getData() {
		return this.data;
	}

	public void setData(java.util.Calendar data) {
		this.data = data;
	}

	public java.util.Calendar getHoraFim() {
		return this.horaFim;
	}

	public void setHoraFim(java.util.Calendar horaFim) {
		this.horaFim = horaFim;
	}

	public java.util.Calendar getHoraInicio() {
		return this.horaInicio;
	}

	public void setHoraInicio(java.util.Calendar horaInicio) {
		this.horaInicio = horaInicio;
	}

	public Eqp01Equipamento getEqp01equipamento() {
		return this.eqp01equipamento;
	}

	public void setEqp01equipamento(Eqp01Equipamento eqp01equipamento) {
		this.eqp01equipamento = eqp01equipamento;
	}
	
	public Fat02Servico getFat02servico() {
		return this.fat02servico;
	}

	public void setFat02servico(Fat02Servico fat02servico) {
		this.fat02servico = fat02servico;
	}
	
	public Sis01Usuario getSis01Usuario() {
		return this.sis01Usuario;
	}

	public void setSis01Usuario(Sis01Usuario sis01Usuario) {
		this.sis01Usuario = sis01Usuario;
	}
	
}